﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ManageBooking.aspx.cs" Inherits="FE_ManageBooking" Title="Untitled Page" %>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="Server">
    <gr:Container ID="uxContainer" runat="server" HeaderText="Tìm kiếm" AllowExpandCollapse="false">
        <div class="ContainerInput">
            <table width="100%" cellpadding="0" cellspacing="0" class="LeftFilter">               
                <tr>
                   <td class="label">
                        Ngày đặt từ
                    </td>
                </tr>
                <tr>
                    <td>
                        <gr:GuruDatePicker ID="uxFromDate" Width="180px" runat="server">
                        </gr:GuruDatePicker>
                    </td>
                </tr>
                <tr>
                   <td class="label">
                        Đến ngày
                    </td>
                </tr>
                <tr>
                    <td>
                        <gr:GuruDatePicker ID="uxToDate" Width="180px" runat="server">
                        </gr:GuruDatePicker>
                    </td>
                </tr>
                 <tr>
                    <td class="label">
                        Mã đặt phòng
                    </td>
                </tr>
                <tr>
                    <td>
                        <gr:TextBox Width="100%" runat="server" ID="uxBookingNumber" MaxLength="20"></gr:TextBox>
                    </td>
                </tr>
            </table>
            <gr:ContainerButton ID="ContainerButton1" runat="server">
                <gr:LinkButton runat="server" ID="uxSearch" OnClick="uxSearch_Click" CssClass="button buttonGray buttonFixedShort"
                    Text="Tìm kiếm" CssClassIcon="icon_search" />
            </gr:ContainerButton>
        </div>
    </gr:Container>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server">
    <gr:Container ID="Container1" runat="server" HeaderText="Danh sách đặt phòng">
        <gr:GuruGrid runat="server" ID="uxBookingGrid" AllowSorting="true" AllowFilteringByColumn="false"
            AllowPaging="true" PageSize="10" OnNeedDataSource="uxBookingGrid_NeedDataSource"
            OnItemDataBound="uxBookingGrid_ItemDataBound">
            <MasterTableView DataKeyNames="RoomBookID">
                <Columns>
                    <gr:GuruGridBoundColumn Format="Sequence" HeaderText="Seq" />                   
                    
                    <gr:GuruGridBoundColumn DataField="BookingNumber" UniqueName="BookingNumber" Format="StaticString"
                        HeaderText="Mã đặt phòng">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="GuestName" UniqueName="GuestName" HeaderText="Khách hàng">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="CreatedDate" Format="Date" HeaderText="Ngày đặt">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="CheckInDate" Format="Date" HeaderText="Ngày đến">
                    </gr:GuruGridBoundColumn>
                    <gr:GuruGridBoundColumn DataField="CheckOutDate" Format="Date" HeaderText="Ngày trả">
                    </gr:GuruGridBoundColumn>
                  
                    <gr:GuruGridBoundColumn DataField="Promotion" Format="Currency" HeaderText="Khuyến mãi">
                    </gr:GuruGridBoundColumn>                   
                    <gr:GuruGridBoundColumn DataField="Prepaid" Format="Currency" HeaderText="Trả trước">
                    </gr:GuruGridBoundColumn>                  
                    
                </Columns>
            </MasterTableView>
        </gr:GuruGrid>
    </gr:Container>
     <gr:GuruAjaxManagerProxy runat="server" ID="GuruAjaxManagerProxy1">
        <AjaxSettings>
            <gr:GuruAjaxSetting AjaxControlID="uxBookingGrid">
               <UpdatedControls>
                    <gr:GuruUpdatedControl ControlID="uxBookingGrid" />
               </UpdatedControls>
            </gr:GuruAjaxSetting>
        </AjaxSettings>
    </gr:GuruAjaxManagerProxy>
   
    <script type="text/javascript">
        function ReloadPage(){
             ReloadRadGrid("<%=uxBookingGrid.ClientID %>");
        }
    </script>
</asp:Content>
